package com.iris.live.services.data.repositories;

import com.iris.live.services.data.models.SalesAdminModel;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created by EngLee on 2016/8/14.
 */
@Transactional
public interface SalesAdminRepository extends JpaRepository<SalesAdminModel, String>, JpaSpecificationExecutor<SalesAdminModel> {

//	@Modifying
//    @Query("update SalesAdminModel a set a.ownerOrDrawerName = ?2 , a.expectedLateInStockDate = ?3 , a.expectedLateMoneyInAccount = ?4 where a.vin = ?1")
//    int updateByVIN(String VIN, String ownerOrDrawerName, Date expectedLateInStockDate, Date expectedLateMoneyInAccount);
}


